package footballmanager;

/**
 * Created by thoughtworker on 1/16/14.
 */
public class Player {
    private String name;
    private String team;
    private Integer jerseyNumber;
    private Integer age;

    public Player(String name, String team, int jerseyNumber, int age) {
        this.name = name;
        this.team = team;
        this.jerseyNumber = jerseyNumber;
        this.age = age;
    }
    public String toString(){
        return String.format("%s, %s, %d, %d", getName(), team, getJerseyNumber(), age);
    }

    public String getName() {
        return name;
    }

    public Integer getJerseyNumber() {
        return jerseyNumber;
    }
}
